package com.lingyuan.oms.constant;

public enum OrderStatusEnum {
//    0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
    UNPAID(0, "待付款"),
    PAID(1, "待发货"),
    SHIPPED(2, "已发货"),
    COMPLETED(3, "已完成"),
    CLOSED(4, "已关闭"),
    INVALID(5, "无效订单");

    private int code;
    private String message;

    OrderStatusEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
